<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>Insert title here</title>
</head>
<body>
	<Script type="text/javascript">
		var address = "US";
		document.write(address + "&nbsp;" + "is my homeland" + "<br>");

		//单行注释
		/*
		 * 多行注释
		
		 var message=confirm("值为真？"); //消息对话框，返回值类型:Boolean  
		 if(message==true){
		 document.write("It's true");
		 }else{
		 document.write("It's false");
		 }
		 */
		"<br>"
		/*
		 var mychar = prompt("", "在这里输入");
		 if (mychar > 15) {
		 document.write("123");
		 } else {
		 document.write("456");
		 }
		 */
		function wOpen() {
			var myaddress=window.open(
				'http://www.baidu.com/',
			    '_blank',
				'width=600,height=500,top=100,menubar=yes,toolbar=yes,scrollbars=yes,status=yes');
	// 	myaddress.close(); 用变量保存函数，可以快解释实现一些功能
		 }
	</Script>
	<form>
		<input name="button" type="button" onClick="wOpen()" value="打开新窗口" />
	</form>
</body>
</html>








